Skip to content

Fix build-analysis inputs and pipeline-triage issue typing - #12429

Merged
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/agentic-workflow-reliability-bb2
Nov 12, 2026
Merged

Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/agentic-workflow-reliability-bb2

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Pull request

Summary

Recent agentic runs can report missing build inputs after successful artifact collection, or fail while assigning an issue category. This repairs the Build Failure Analysis and Pipeline Test Triage workflow contracts:

  • Give both build-analysis triggers a validated, sandbox-visible manifest and read binary logs through their MCP container paths.
  • Queue native Bug typing through the created issue's temporary ID, with title/label/repository filters and a bounded deferred retry.
  • Regenerate the three workflow locks without changing approval gates, detection, network policy, or the aligned gh-aw v1.0.1 runtime.

Relates to #12385

The apt startup failure tracked there was already addressed by #12405; this PR does not duplicate that fix or close the automatically managed tracker.

Design and decision record

These are workflow repairs, not a new product feature. The maintained investigation and decisions explain the failing boundaries and preserved controls.

Host-side environment exports are not the analyst's input contract, and /data/binlogs belongs to the MCP container rather than the agent filesystem. The trusted exporter now serializes the resolved identities and inventory into /tmp/gh-aw; it uses isolated Python startup. Native Issue Type is handled by set_issue_type, not custom fields.Type. The existing custom-field allowlist is retained because omission would allow all custom fields.

The v1.2.2 upgrade was evaluated in an isolated snapshot but does not repair these authored contracts and requires separate checkout-policy review. This PR retains the matching v1.0.1 compiler/runtime instead of broadening the change.

Demonstration

This changes orchestration rather than rendered layout. The investigation used existing Build Failure Analysis run 43150146472 and Pipeline Test Triage run 43180889320. No workflow was dispatched or rerun to demonstrate the changes; hosted model behavior, issue categorization, and publication remain unverified. No screenshot is presented as proof.

Validation and regression proof

Source state: parent 29f8046dad20ec4d4cef871d63fb4d2000449c33, committed candidate 71767f25d715f83fdc770f1b15e224bc8e47a39e. The checked working-tree patch was unchanged before committing. These are local static/compiler checks, not hosted workflow execution.

Command/check Result
gh-aw-v1.0.1.exe compile build-failure-analysis build-failure-analysis-command pipeline-test-triage --strict --no-check-update --shellcheck --json Passed, exit 0: three workflows, zero warnings, 187 shell resources. Invoked the standalone release binary verified against its published SHA-256 checksum.
python .github\scripts\check_action_pins.py Passed, exit 0: 2,769 references across 60 files.
git --no-pager diff --check Passed, exit 0 before commit.
Python AST parsing and Node v24.22.1 --check of the embedded driver Passed, syntax only; neither changed regression harness was executed.
Parsed-YAML comparison against the parent Passed: existing triggers, permissions, gates, create-issue configuration, and binlog mounts preserved.

No .NET build or package validation was applicable to these workflow-only changes. The final automated safety follow-up could not be completed because the synchronous reviewer could not accept a continuation. Offline regressions and retained-test comparisons were withheld; their behavior is not claimed as verified. Local evidence remains in session artifacts and has not been uploaded.

Test-value evidence

Seven regression methods were added; zero were executed. No red/green result is claimed.

Contract / representative test Intended counterfactual Without repair With repair
Manifest delivery: BuildAnalysisInputTests.test_build_context_is_readable_without_environment_probes Retain the test against the parent's environment-export implementation. Not run. Not run.
Isolated metadata generation: BuildAnalysisInputTests.test_build_context_ignores_checkout_and_python_path_modules Remove only interpreter isolation in a task-owned comparison. Not run. Not run.
Native issue category: GhAwRuntimeContractTests.test_pipeline_triage_issue_recipe_creates_native_bug Retain the test against the parent's custom-field recipe and compiled configuration. Not run. Not run.

The other new methods cover invalid or missing identity/inventory, optional merge identity and compiled delivery, failed/duplicate creation, and type-assignment scope filters. Regression sensitivity, hosted execution, and real GitHub publication are still explicit validation gaps.

Use validated runtime manifests for build analysis and queue native Bug typing through scoped safe outputs. Preserve the aligned runtime and document validation limits.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 12, 2026 11:00
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Nov 12, 2026
@Evangelink
Amaury Levé (Evangelink) merged commit 5b3df7d into main Nov 12, 2026
16 of 18 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/agentic-workflow-reliability-bb2 branch November 12, 2026 11:02
@github-actions github-actions Bot removed the state/needs-review Awaiting review from the team. label Nov 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Native issue-typing and deferred-retry contracts remain unverified because the seven regressions and hosted publication were not exercised, and access to the pinned upstream runtime was blocked.

No open issues 🎉

What changed in this PR

This PR repairs TestFx’s build-analysis and pipeline-triage automation: analysts receive explicit runtime inputs, and newly created triage issues receive the native GitHub Bug type. It remains separate from the apt startup fix in #12405.

Changes:

  • Replace environment exports with validated, sandbox-visible manifests and clarify that binlog paths belong to the MCP container.
  • Queue native issue typing through temporary IDs, with scope filters and a bounded deferred retry.
  • Regenerate three workflow locks and add seven regression methods plus investigation documentation.

Test-value evidence: For candidate 71767f25d715f83fdc770f1b15e224bc8e47a39e, the PR reports successful strict compilation, ShellCheck, syntax checks, and action-pin validation. None of the seven new regression methods were executed; red/green sensitivity and hosted publication remain unverified.

Confidence at a glance — 🟡 Workflow behavior

Validation is limited to reported static/compiler checks. Execute the new regression methods and retained-test comparisons to establish behavioral evidence; hosted execution remains a separate validation gap.

File Description
.github/​workflows/​shared/​build-failure-analysis-shared.md Directs analysts to the manifest and MCP-only binlog paths.
.github/​workflows/​README.md Records investigation, design decisions, and validation limits.
.github/​workflows/​pipeline-test-triage.md Configures filtered native issue typing and retry budget.
.github/​workflows/​pipeline-test-triage.lock.yml Regenerates runtime configuration for issue typing.
.github/​workflows/​build-failure-analysis.md Writes validated inputs using isolated Python startup.
.github/​workflows/​build-failure-analysis.lock.yml Regenerates automatic build-analysis delivery.
.github/​workflows/​build-failure-analysis-command.md Adds manifest delivery to command-triggered analysis.
.github/​workflows/​build-failure-analysis-command.lock.yml Regenerates command-triggered workflow delivery.
.github/​scripts/​test_gh_aw_runtime_contracts.py Adds issue-typing, retry, creation-failure, and scope tests.
.github/​scripts/​test_agentic_workflow_warning_contracts.py Adds manifest, identity, import-isolation, and delivery tests.
.github/​agents/​pipeline-test-triage-analyst.agent.md Replaces custom-field typing with the temporary-ID recipe.
.github/​agents/​build-failure-analyst.agent.md Documents manifest inputs and container-only log access.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants